<?php

/**
 * Yii view index
 *
 * @author <KTD SOFT>
 * @since Jan 10, 2013 - 2:05:24 AM
 */
$this->widget('DataTable', array(
    'model'       => $this->model,
    'title'       => $this->pageTitle,
    'fieldSearch' => 'name',
    'columns'     => array(
        'name',
        'views',
        'clicks',
        array(
            'name'  => Yii::t('link', 'Status'),
            'value' => '$data->statusLabel',
        ),
        array(
            'name'  => Yii::t('datatable', 'Create At'),
            'value' => 'MyUtil::timeToString($data->created->created_at)',
        ),
        array(
            'name'  => Yii::t('datatable', 'Create By'),
            'value' => '$data->created->admin->username',
        ),
        array(
            'name'  => Yii::t('datatable', 'Update At'),
            'value' => 'MyUtil::timeToString($data->updated->created_at)',
        ),
        array(
            'name'  => Yii::t('datatable', 'Update By'),
            'value' => '$data->updated->admin->username',
        ),
    ),
));
